
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@envelop/instruments
Advanced tools
This package contains utility functions and types to ease the use of instruments accross Envelop, Yoga, whatwg-node and Hive Gateway plugins.
@envelop/instruments
This package contains utility functions and types to ease the use of instruments accross Envelop, Yoga, whatwg-node and Hive Gateway plugins.
[!NOTE] Instruments are automatically composed together. This should only be used if the default ordering doesn't suit your needs (ie. instruments and hooks should be executed in different order)
composeInstruments(instruments: Instruments[]): Instruments
This function composes all the instruments into one. The instruments will be called in the same order as they are in the array (from top to bottom).
import { composeInstruments } from '@envelop/instruments'
// Extract instruments to compose from their plugins
const { instruments: instruments1, ...plugin1 } = usePlugin1()
const { instruments: instruments2, ...plugin2 } = usePlugin2()
const getEnveloped = envelop({
plugins: [
plugin1,
plugin2,
// Plugin instruments and plugin hooks will be executed in a different order
{ instruments: composeInstruments([instruments1, instruments2]) }
]
})
FAQs
This package contains utility functions and types to ease the use of instruments accross Envelop, Yoga, whatwg-node and Hive Gateway plugins.
We found that @envelop/instruments demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.